package edu.zjut.hjg.saas.biz.model;

import java.util.Date;

import edu.zjut.hjg.saas.biz.support.ChargeStatus;

public class Subscribe {
    private Integer      id;
    private Kindergarten kindergarten = new Kindergarten();
    private PriceType    priceType    = new PriceType();
    private ChargeStatus chargeStatus;
    private Date         occurTime;

    public boolean isFreeTrial() {
        return this.chargeStatus == ChargeStatus.FREE_TRIAL;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Kindergarten getKindergarten() {
        return kindergarten;
    }

    public void setKindergarten(Kindergarten kindergarten) {
        this.kindergarten = kindergarten;
    }

    public PriceType getPriceType() {
        return priceType;
    }

    public void setPriceType(PriceType priceType) {
        this.priceType = priceType;
    }

    public ChargeStatus getChargeStatus() {
        return chargeStatus;
    }

    public void setChargeStatus(ChargeStatus chargeStatus) {
        this.chargeStatus = chargeStatus;
    }

    public Date getOccurTime() {
        return occurTime;
    }

    public void setOccurTime(Date occurTime) {
        this.occurTime = occurTime;
    }

    @Override
    public String toString() {
        return "Subscribe [chargeStatus=" + chargeStatus + ", id=" + id + ", kindergarten="
                + kindergarten + ", occurTime=" + occurTime + ", priceType=" + priceType + "]";
    }
}
